//Powered By zsCat, Since 2014 - 2020

package com.zs.pig.log.serviceImpl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zs.pig.log.api.model.Plog;
import com.zs.pig.log.api.model.PlogWithBLOBs;
import com.zs.pig.log.api.service.PlogService;
import com.zs.pig.log.mapper.PlogMapper;

/**
* @author zsCat 2016-6-14 13:57:04
 * @Email: 951449465@qq.com
 * @version 4.0v
 *	我的blog
 */

@Service("PlogService")
public class PlogServiceImpl  implements PlogService {

	@Resource
	private PlogMapper PlogMapper;

	@Override
	public int savePlog(PlogWithBLOBs record) {
		PlogMapper.insertSelective(record);
		return 0;
	}

	@Override
	public int deletePlog(Long id) {
		PlogMapper.deleteByPrimaryKey(id);
		return 0;
	}

	@Override
	public List<PlogWithBLOBs> findAll() {
		// TODO Auto-generated method stub
		return PlogMapper.findAll();
	}

	

	
}
